
import Vue from 'vue';
import * as types from './../type';

import * as api from './../../api/api.js'
const state = {
    roleOfficeList: []
};
const actions = {
    //获取所有活动列表接口
    getPrdList (context) {
        api.fetchActivityList().then(res=>{
            context.commit('GET_ROLE_OFFICE_LIST',res.data.data.mts)
        });
    },
};
const mutations = {
    //获取所有活动列表接口
    [types.GET_ROLE_OFFICE_LIST](state, res) {
        state.roleOfficeList = res;
    },
};
const getters = {
    //获取所有活动列表接口
    getPrdList (state) {
        return state.roleOfficeList;
    },
};
export default {
    state,
    actions,
    getters,
    mutations
}





